@extends('layouts.master')

@section('css')
<style type="text/css" title="currentStyle">
@import "/css/dataTables.css";
</style>
@stop

@section('javascript')
<script src="/js/jquery.dataTables.min.js"></script>
<script src="/js/anagrafica.js"></script>
@stop

@section('content')

<table class="display" id="anagrafica">
	<thead>
		<tr>
		<?php
			foreach($intestazioni as $colonna){
				print "<th>".$colonna."</th>";
			}
		?>
			<th>dettagli</th>
		</tr>
	</thead>
	<tbody>
	<?php
		foreach($strumenti as $strumento){
			print "<tr>";
			print "<td>".$strumento['codice']."</td>";
			print "<td>".$strumento['famiglia']."</td>";
			print "<td>".$strumento['descrizione']."</td>";
			print "<td>".$strumento['data_prossimo_controllo']."</td>";
			print "<td>".$strumento['posizione']."</td>";
			
			print "<td class=\"dettagli\"><span class=\"glyphicon glyphicon-info-sign\"></span><p hidden>".$strumento['dettagli']."</p></td>";
			print "</tr>"; 
		}
	?>
	</tbody>
	<tfoot>
		<tr>
		<?php
		foreach($intestazioni as $colonna){
			print "<th>".$colonna."</th>";
		}
		?>
			<th>dettagli</th>
		</tr>
	</tfoot>
</table>

@stop